Skip to content

Added documentation for --suppress-xml#1420

Merged
danmar merged 3 commits intocppcheck-opensource:masterfrom
Laro88:docfix/--suppress-xml
Oct 13, 2018
Merged

Added documentation for --suppress-xml#1420
danmar merged 3 commits intocppcheck-opensource:masterfrom
Laro88:docfix/--suppress-xml

Conversation

@Laro88
Copy link
Copy Markdown
Contributor

@Laro88 Laro88 commented Oct 10, 2018

No description provided.

@Laro88
Copy link
Copy Markdown
Contributor Author

Laro88 commented Oct 10, 2018

The xml example in the manual seems wrong

<?xml version="1.0"?>
<suppressions>
 <suppress>
 <id>preprocessorErrorDirective</id>
 <fileName>somedir/IDataReceiver.h</fileName>

Comment thread man/cppcheck.1.xml
Comment thread man/cppcheck.1.xml Outdated
Each suppression is in the format of &lt;spec&gt; above.</para>
</listitem>
</varlistentry>
<varlistentry>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This <varlistentry> have too much indentation

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits.

It feels like we should indent this with the runastyle script cppcheck/runastyle. However that is a different PR.

@Laro88
Copy link
Copy Markdown
Contributor Author

Laro88 commented Oct 11, 2018

I have updated the indentation in the xml, however I don't know where the actual manual document is. If it is in the git repo then I will paste a sample in there that seems to work.

@amai2012 amai2012 mentioned this pull request Oct 11, 2018
danmar pushed a commit that referenced this pull request Oct 13, 2018
Try to format cppcheck.1.xml via xmllint as suggested in #1420
@danmar danmar merged commit 5328caa into cppcheck-opensource:master Oct 13, 2018
glankk added a commit that referenced this pull request Jul 15, 2025
The recheck and hide options in the context menu now show how many files
or errors are affected. If no files or errors are selected, the
pertinent option is disabled. I've opted to count top-level header files
as well since the recheck option is effective on them, they're rechecked
as part of the file that included them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants